package com.study.demo01.err;

import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.junit.jupiter.api.Test;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author zhuzi
 * 2023/8/30 13:33
 * <a href="https://lianglianglee.com/%e4%b8%93%e6%a0%8f/Java%20%e4%b8%9a%e5%8a%a1%e5%bc%80%e5%8f%91%e5%b8%b8%e8%a7%81%e9%94%99%e8%af%af%20100%20%e4%be%8b/01%20%e4%bd%bf%e7%94%a8%e4%ba%86%e5%b9%b6%e5%8f%91%e5%b7%a5%e5%85%b7%e7%b1%bb%e5%ba%93%ef%bc%8c%e7%ba%bf%e7%a8%8b%e5%ae%89%e5%85%a8%e5%b0%b1%e9%ab%98%e6%9e%95%e6%97%a0%e5%bf%a7%e4%ba%86%e5%90%97%ef%bc%9f.md">常见错误</a>
 */
public class Demo01 {

    @Test
    public void test01() {
        ConcurrentHashMap map = new ConcurrentHashMap<String, Object>();
        map.size();
    }

    @Test
    public void testHttp(){
        CloseableHttpClient httpClient = HttpClients.custom().setMaxConnPerRoute(10).setMaxConnTotal(20).build();
        
    }
}
